print('---------------猜数字游戏---------------')
import random
secret = random.randint(1,10)
temp = input("猜数字：")
guess = int(temp)
if guess == secret:
    print("哈哈哈")
    print("猜中也没奖励")
else:
    if guess > secret:
        print("大了")
    else:
        print("小了")
while guess != secret:
    temp = input("猜数字：")
    guess = int(temp)
    if guess == secret:
        print("对了")
    else:
        if guess > secret:
            print("大了")
        else:
            print("小了")
print("Game Over!")
print("Num is "+ (str)(secret))
